package com.tb.v1.common.exception;

/**
 * @author tb
 */
public class CommonException extends Exception {

	private String code;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public CommonException(String code, Throwable cause) {
		super(cause);
		this.code = code;
	}

	public CommonException(String code) {
		this.code = code;
	}

	public CommonException(Throwable cause) {
		super(cause);
	}

	public CommonException(String code, String errorMsg) {
		super(errorMsg);
		this.code = code;
	}

	public CommonException(String code, String errorMsg, Throwable cause) {
		super(errorMsg, cause);
		this.code = code;
	}
}
